const { db } = require('../util/mysql')

// 通过用户名查询
exports.searchResident = async (name) => {
    let data = await db('select * from resident where name = ?', [name])
    return data
}